package day002.Bean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class ExamMain {
	public static void main(String[] args) {
		ApplicationContext context = new FileSystemXmlApplicationContext("src/day002/Bean/exam02.xml");
		
		ExamDao exam = (ExamDao)context.getBean("examDao");
		exam.printMessage();
		
		ExamTest examTest = (ExamTest)context.getBean("exam");
		examTest.getMessage();
	}
}